package com.hzit.client;


// import com.hzit.client.factory.StudentClientFallBackFactory;
import com.hzit.client.factory.StudentClientFallBackFactory;
import com.hzit.client.impl.StudentClientFallBack;
import com.hzit.utils.R;
// import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

// @FeignClient(value = "hzit-student",fallback = StudentClientFallBack.class)        // value：代表要调用的微服务名称
@FeignClient(value = "hzit-student",fallbackFactory = StudentClientFallBackFactory.class)        // value：代表要调用的微服务名称
public interface StudentClient {

	// 查看所有学生列表
	@GetMapping("/api/student/list")
	R list();

	@GetMapping("/api/student/findById/{sid}")
	R findById(@PathVariable("sid") Integer sid);
}
